import request from './request.js';

// 获取推荐歌单列表
export const getRecommendSongList = () => request({
    url: `/wangyiyun/getWangYiYunRecommendSongList`,
    method: 'get',
});

// 获取这个歌单的歌曲列表
export const getThisSongListAllInfo = (songListAid) => request({
    url: `wangyiyun/getGeDanSongs?id=${songListAid}`,
    method: 'get',
});

// 获取歌单的详情
export const getGeDanDetail = (songListAid) => request({
    url: `wangyiyun/getGeDanDetailByGeDanId?id=${songListAid}`,
    method: 'get',
});

// 根据手机号获取验证码
export const getVerificationCodeByPhone = (phone) => request({
    url: `wangyiyun/getVerificationCodeByPhone?phone=${phone}`,
    method: 'get',
});

// 检验验证码是否正确
export const checkVerificationApi = (phone,captcha) => request({
    url: `wangyiyun/verifyShortMessageCode?phone=${phone}&captcha=${captcha}`,
    method: 'get',
});